
package com.wwy.monitor.service;

import com.wwy.monitor.model.tddl.dto.MonitorAppDTO;
import com.wwy.monitor.model.tddl.query.MonitorAppQuery;

import java.util.List;

/**
 * @author tianquan.ld
 * @version V1.0
 * <p>Description: çæ§app service</p>
 * @date 2019-10-30 21:17
 */
public interface MonitorAppService {
    /**
     * æ°å»º
     *
     * @param entity
     * @return
     */
    boolean insert(MonitorAppDTO entity);

    /**
     * å é¤
     *
     * @param id
     * @return
     */
    boolean deleteById(Long id);

    /**
     * æ´æ°
     *
     * @param entity
     * @return
     */
    boolean updateById(MonitorAppDTO entity);

    /**
     * æ´æ°åºç¨ç¶æ
     *
     * @param monitorAppDTO æ¡ä»¶
     * @return æ¡æ°
     */
    boolean updateStatusById(MonitorAppDTO monitorAppDTO);

    /**
     * æ¥è¯¢
     *
     * @param query
     * @return
     */
    List<MonitorAppDTO> selectByQuery(MonitorAppQuery query);

    /**
     * æ ¹æ®idæ¥è¯¢
     *
     * @param id
     * @return
     */
    MonitorAppDTO selectById(Long id);

    /**
     * å¨é¨æ°é
     *
     * @return
     */
    Integer count(MonitorAppQuery query);

    /**
     * 校验appNameãAoneIdæ¯å¦å­å¨
     *
     * @param dto æ¥è¯¢æ¡ä»¶
     */
    void checkApp(MonitorAppDTO dto);
}